import { MigrationStep } from '../../Client/types'

export const steps: MigrationStep[] = [
  {
    type: 'CreateModel',
    __typename: 'CreateModel',
    name: 'User',
  },
  {
    type: 'CreateModel',
    __typename: 'CreateModel',
    name: 'Rell',
  },
  {
    cf_relation: null,
    name: 'id',
    model: 'User',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: true,
    type: 'CreateField',
    cf_isRequired: true,
    cf_typeName: 'GraphQLID',
    cf_enum: null,
  },
  {
    cf_relation: null,
    name: 'name',
    model: 'User',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: true,
    cf_typeName: 'String',
    cf_enum: null,
  },
  {
    cf_relation: null,
    name: 'field',
    model: 'User',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: false,
    cf_typeName: 'String',
    cf_enum: null,
  },
  {
    cf_relation: 'Rellation',
    name: 'relation',
    model: 'User',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: false,
    cf_typeName: 'Relation',
    cf_enum: null,
  },
  {
    cf_relation: null,
    name: 'dom',
    model: 'User',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: false,
    cf_typeName: 'Int',
    cf_enum: null,
  },
  {
    cf_relation: null,
    name: 'id',
    model: 'Rell',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: true,
    type: 'CreateField',
    cf_isRequired: true,
    cf_typeName: 'GraphQLID',
    cf_enum: null,
  },
  {
    cf_relation: 'Rellation',
    name: 'us',
    model: 'Rell',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: false,
    cf_typeName: 'Relation',
    cf_enum: null,
  },
  {
    cf_relation: null,
    name: 'trolo',
    model: 'Rell',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: false,
    cf_typeName: 'String',
    cf_enum: null,
  },
  {
    cf_relation: null,
    name: 'ha',
    model: 'Rell',
    __typename: 'CreateField',
    cf_isList: false,
    cf_defaultValue: null,
    cf_isUnique: false,
    type: 'CreateField',
    cf_isRequired: false,
    cf_typeName: 'Int',
    cf_enum: null,
  },
  {
    name: 'Rellation',
    rightModel: 'Rell',
    __typename: 'CreateRelation',
    leftModel: 'User',
    type: 'CreateRelation',
  },
  {
    name: 'dom',
    relation: null,
    model: 'User',
    isList: null,
    isUnique: null,
    isRequired: true,
    __typename: 'UpdateField',
    newName: null,
    typeName: null,
    enum: null,
    type: 'UpdateField',
    defaultValue: null,
  },
  {
    type: 'CreateEnum',
    __typename: 'CreateEnum',
    name: 'asd',
    ce_values: ['Lol'],
  },
]
